package com.yitong.equipment.view

import com.luck.picture.lib.engine.ImageEngine
import com.luck.picture.lib.engine.PictureSelectorEngine
import com.luck.picture.lib.entity.LocalMedia
import com.luck.picture.lib.listener.OnResultCallbackListener

class PictureSelectorEngineImp : PictureSelectorEngine {

    override fun createEngine(): ImageEngine? {
        // 重新创建图片加载引擎
        return GlideEngine().createGlideEngine()
    }

    override fun getResultCallbackListener(): OnResultCallbackListener<LocalMedia?>? {
        return object : OnResultCallbackListener<LocalMedia?> {
            override fun onResult(result: List<LocalMedia?>) {}
            override fun onCancel() {}
        }
    }
}